projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85855da
)
gtkapplication: Fix passing NULL as the window to inhibit
author
Bastien Nocera
<hadess@hadess.net>
Fri, 11 Apr 2014 08:53:45 +0000
(10:53 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 12 Apr 2014 01:51:53 +0000
(18:51 -0700)
gtk_application_inhibit() supports passing NULL, so don't
blindly pass the NULL window to
gtk_application_impl_dbus_get_window_system_id().
https://bugzilla.gnome.org/show_bug.cgi?id=728023
gtk/gtkapplication-dbus.c
patch
|
blob
|
history
diff --git
a/gtk/gtkapplication-dbus.c
b/gtk/gtkapplication-dbus.c
index cd145d20069fe8e6d964d009f9b25cc0b9a9589b..b0dab7096502c673a56ca60fed7ab1891e8bc916 100644
(file)
--- a/
gtk/gtkapplication-dbus.c
+++ b/
gtk/gtkapplication-dbus.c
@@
-339,7
+339,7
@@
gtk_application_impl_dbus_inhibit (GtkApplicationImpl *impl,
"Inhibit",
g_variant_new ("(s@usu)",
dbus->app_id,
-
gtk_application_impl_dbus_get_window_system_id (dbus, window)
,
+
window ? gtk_application_impl_dbus_get_window_system_id (dbus, window) : 0
,
reason,
flags),
G_DBUS_CALL_FLAGS_NONE,